package com.zzl.bonds.ticket.constant.status;

/**
 * 冻结状态 0，未冻结，1已冻结
 *
 * @author : gull
 * @date : 2022/3/4 13:12
 */
public enum FrozenStatusEnum {

    /**
     * 冻结状态 0，未冻结，1已冻结
     */
    FROZEN_STATUS_NO(0, "未冻结"),
    FROZEN_STATUS_YES(1, "已冻结"),
    ;
    private Integer code;
    private String value;


    FrozenStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (FrozenStatusEnum statusEnum : FrozenStatusEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
